package com.tensquare.search.dao;
/*
 *ClassName:ArticleSearchDao
 *Description:文章搜索的数据访问接口
 *@author:可爱的大鸭子
 */

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ArticleSearchDao extends ElasticsearchRepository<Article,String>{
    /**
     * 检索
     * @param
     * @return
     */
    public Page<Article> findByTitleLike(String title, Pageable pageable);
}
